From dc8b66bcaad44258985e6e0d69ed50f64e19d18f Mon Sep 17 00:00:00 2001 From: robertl Date: Wed, 14 Sep 2005 14:19:46 +0000 Subject: [PATCH] Don't prefer 'notes' on a shortname if we have an empty (but non-null) notes. (Test case: input from a tabsep file...) git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@1422 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/mkshort.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gpsbabel/mkshort.c b/gpsbabel/mkshort.c index 8c2c96005..2ab7e220c 100644 --- a/gpsbabel/mkshort.c +++ b/gpsbabel/mkshort.c @@ -478,7 +478,8 @@ mkshort_from_wpt(void *h, const waypoint *wpt) * which contains placer name, diff, terr, and generally way * more stuff than should be in any one field... */ - if (wpt->gc_data.diff && wpt->gc_data.terr && wpt->notes) { + if (wpt->gc_data.diff && wpt->gc_data.terr && + wpt->notes && wpt->notes[0]) { return mkshort(h, wpt->notes); } -- 2.30.2